﻿using Autofac;

namespace Gfinder.Service
{
    public class ServiceModule : Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            builder.RegisterAssemblyTypes(typeof(ServiceModule).Assembly)
                  .Where(x => x.Name.EndsWith("Service"))
                  .AsImplementedInterfaces();
        }
    }
}
